jvc.util.print=new jvc_util_print();
function jvc_util_print(){	
		this.toPrinter=function (el){
		{
		var iframe=document.createElement('IFRAME');
		var doc=null;
		var s=iframe.style;
		s.position="absolute";
		s.width=0;
		s.height=0;
		s.left=0;
		s.top=0;
		document.body.appendChild(iframe);
		//iframe.document.getElementsByTagName('HEAD').item(0).appendChild(style); 
		doc=iframe.contentWindow.document;
		var links=window.document.getElementsByTagName('link');
		if(window.document.getElementsByTagName('style').length)
		doc.write("<style>"+window.document.getElementsByTagName('style')[0].innerHTML+"</style>"); 
		for(var i=0;i<links.length;i++)
		if(links[i].rel.toLowerCase()=='stylesheet')
		doc.write('<link type="text/css" rel="stylesheet" href="'+links[i].href+'"></link>');
		doc.write('<div class="'+el.className+'">'+el.innerHTML+'</div>');
		doc.close();
		iframe.contentWindow.focus();
		iframe.contentWindow.print();
		document.body.removeChild(iframe);
		}
	}
}